<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.selectWidth2{
   width:205px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">项目贷款基本情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="dkqk" cellspacing="1">
	<tr>
		<td  width="135" align="right">单位名称：</td>
		<td  colspan="5">
			<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />
		</td>
	</tr>
	<tr>
		<td  width="135" align="right">项目名称：</td>
		<td  colspan="5">
			<span id="prjName"><x:out select="$xmlData/data/proposal/zh_title" /></span>
		</td>
	</tr>
	<tr>
		<td  align="right">贷款银行：</td>
		<td  colspan="2">
		<x:out select="$xmlData/data/proposal/lending_bank" />
		</td>
		<td  align="right">银行开户账号：</td>
		<td  colspan="2">
		<x:out select="$xmlData/data/proposal/bank_no" />
		</td>
	</tr>
</table>
<div class="t_bar">贷款情况(单位：万元)</div>
<table  id="tblLendings" cellpadding="0" class="table01" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="14%">合同号码</th> 
				        <th class="TblHead" align="center"  width="14%">贷款日期</th> 
						<th class="TblHead" align="center"  width="14%">到期日期</th> 
						<th class="TblHead" align="center"  width="14%">贷款额度</th> 
						<th class="TblHead" align="center"  width="13%">贷款利率%</th> 
						<th class="TblHead" align="center"  width="13%">已还款金额<br/></th> 
						<th class="TblHead" align="center"  width="13%">已付利息<br/></th> 
					</tr>
			</thead>
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/lendings/lending" var="lending">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr align="center">
						<td align="center">&nbsp;
							<span name="lendings/lending[${flag}${index}]@seq_no" ><x:out select="$lending/@seq_no"/></span> 
						</td>
						<td>
							<x:out select="$lending/contract_no"/>
						</td>
						<td >
							<x:out select='$lending/start_date' />
						</td> 
						<td >
							<x:out select='$lending/end_date' />
						</td> 
						<td >
							<x:out select="$lending/loan_commitment"/>
						</td> 
						<td >
							<x:out select="$lending/loan_rate" />
						</td> 
						<td >
							<x:out select="$lending/repayment" />
						</td> 
						<td >
							<x:out select="$lending/interest" />
						</td> 
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					</table>
					<table   cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;" id="dkqk1">
					<tr >
					<td colspan="3" width="19%" align="center">合计</td>
					<td width="14%" align="center">\</td>
					<td width="14%" align="center">\</td>
					<td width="14%" align="center"><x:out select="$xmlData/data/lendings/loan_commitment" /></td>
					<td width="13%" align="center">\</td>
					<td width="13%" align="center"><x:out select="$xmlData/data/lendings/repayment" /></td>
					<td width="13%" align="center"><x:out select="$xmlData/data/lendings/interest" /></td>
					</tr>
					<tr>
					<td colspan="3" align="right">申请贷款贴息金额：</td>
					<td colspan="6" align="center"><x:out select="$xmlData/data/lendings/dktxje" /></td>
					</tr>
                   </table>
